package org.news.beans;

import java.util.Date;

/**
 * Created by lenovo on 2016/5/11.
 */
public class News {
    private int id;
    private String title;
    private String content;
    private int hot;
    private Date releaseTime;
    private int click;
    private String keywords;

    private Users user;
    private Types type;

    public News() {
    }

    public News(int id, String title, String content, int hot, Date releaseTime,
                    int click, String keywords, Users user, Types type) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.hot = hot;
        this.releaseTime = releaseTime;
        this.click = click;
        this.keywords = keywords;
        this.user = user;
        this.type = type;
    }

    public Types getType() {
        return type;
    }

    public void setType(Types type) {
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getHot() {
        return hot;
    }

    public void setHot(int hot) {
        this.hot = hot;
    }

    public Date getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
    }

    public int getClick() {
        return click;
    }

    public void setClick(int click) {
        this.click = click;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public Users getUser() {
        return user;
    }

    public void setUser(Users user) {
        this.user = user;
    }
}